﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'GastoAdd')
	BEGIN
		DROP  Procedure  GastoAdd
	END
GO

CREATE PROCEDURE GastoAdd 	
	(	
		@empresaId AS INT,
		@concepto AS VARCHAR(50),
		@monto AS MONEY,
		@tipo AS CHAR(1)
	)	
AS
BEGIN	
	SET NOCOUNT ON
	
	INSERT INTO Lit_Gasto (empresaId, concepto, monto, tipo, activo)
	VALUES (@empresaId, @concepto, @monto, @tipo, 1)  
		
	SET NOCOUNT OFF
END
GO 